import instance from "@/utils/axios.js";
export function login(username, password) {
     return  instance.post("/user/login",{
        userName: username,
         password: password
    });
}
export function logout() {
    return  instance.post("/user/logout",{});
}
//测试响应401错误，测试是否可以由axios拦截并重定向到首页
export function Test() {
    return  instance.get("/test401");
}